package com.duyinone.demo.mvp;

import androidx.annotation.Nullable;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.duyinone.demo.mvp.base.BaseActivity;


public class MainActivity  extends BaseActivity<MainPresenter> implements MainContract.view, View.OnClickListener {

    TextView textView;
    Button button;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textView =findViewById(R.id.textView1);
        button =findViewById(R.id.button);
        textView.setOnClickListener(this);
        button.setOnClickListener(this);
        mPresenter = new MainPresenter(this);
    }

    @Override
    public void onClick(View v) {
        if (v ==button){
            Log.e("TAG", "onClick: " + "w");
        }
    }

}